import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

 const store = new Vuex.Store({
  state: {
    token: '',
  },
  mutations: {
    setUser(state,user){
        state.token = user
        console.log(state.token)
    },
    scrollToph(state,top){
        state.top = top
    }
  }
})

export default store